<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "https://www.w3.org/TR/html4/loose.dtd">
<html lang="zh-CN"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><meta http-equiv="Content-Language" content="zh-CN"><link href="stylesheet.css" media="all" rel="stylesheet" type="text/css">
<title>例子</title>
<script> var _hmt = _hmt || []; (function() { var hm = document.createElement("script"); hm.src = "https://hm.baidu.com/hm.js?d286c55b63a3c54a1e43d10d4c203e75"; var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(hm, s); })(); </script>
</head><body class="SECT1">
<div>
<table summary="Header navigation table" width="100%" border="0" cellpadding="0" cellspacing="0">
<tr><th colspan="5" align="center" valign="bottom">PostgreSQL 8.2.3 中文文档</th></tr>
<tr><td width="10%" align="left" valign="top"><a href="bki-structure.html" accesskey="P">后退</a></td><td width="10%" align="left" valign="top"><a href="bki.html">快退</a></td><td width="60%" align="center" valign="bottom">章53. BKI 后端接口</td><td width="10%" align="right" valign="top"><a href="bki.html">快进</a></td><td width="10%" align="right" valign="top"><a href="planner-stats-details.html" accesskey="N">前进</a></td></tr>
</table>
<hr align="LEFT" width="100%"></div>
<div class="SECT1"><h1 class="SECT1"><a name="BKI-EXAMPLE">53.4. 例子</a></h1>
<p>下面的命令集将创建名为 <tt class="LITERAL">test_table</tt> 的表，该表有两个类型分别为 <tt class="TYPE">int4</tt> 和 <tt class="TYPE">text</tt> 的字段 <tt class="LITERAL">cola</tt> 和 <tt class="LITERAL">colb</tt> ，然后向该表插入两行。</p>
<pre class="PROGRAMLISTING">create test_table 420 (cola = int4, colb = text)
open test_table
insert OID=421 ( 1 "value1" )
insert OID=422 ( 2 _null_ )
close test_table</pre>
</div>
<div>
<hr align="LEFT" width="100%">
<table summary="Footer navigation table" width="100%" border="0" cellpadding="0" cellspacing="0">
<tr><td width="33%" align="left" valign="top"><a href="bki-structure.html" accesskey="P">后退</a></td><td width="34%" align="center" valign="top"><a href="index.html" accesskey="H">首页</a></td><td width="33%" align="right" valign="top"><a href="planner-stats-details.html" accesskey="N">前进</a></td></tr>
<tr><td width="33%" align="left" valign="top">系统初始化的 BKI 文件的结构</td><td width="34%" align="center" valign="top"><a href="bki.html" accesskey="U">上一级</a></td><td width="33%" align="right" valign="top">规划器如何使用统计信息</td></tr>
</table>
</div>
</body></html>